<template>
	<h4>商品管理</h4>
	<table class="table table-bordered table-striped">
		<thead>
			<slot name='header'>
				
			</slot>
			
		</thead>
		<tbody>
			<tr v-for='(item,index) in goodList' :key='item.id'>
				<slot name="body" :row='item' :index='index'></slot>
			</tr>
		</tbody>
	</table>
	
</template>

<script setup>
	//2.接受数据
	const props=defineProps({
		goodList:{
			type:Array,
			required:true,
			default:[]
		}
	})
</script>

<style scoped>
</style>